﻿namespace FallingRocks
{
    public class Rock : GameObject
    {        
        public Rock(Position topLeft, char[] visualisation, Position speed, Color color)
            : base(topLeft, visualisation, speed, color)
        {
        }
        
        public override bool CanCollideWith(GameObject gameObject)
        {
            return gameObject.GetType() == typeof(Dwarf);
        }

        public override bool RespondToCollision(GameObject gameobject)
        {
            if (gameobject is Dwarf)
            {
                return true;
            }
            else
            {
                return false;
            }
        }
    }
}
